package cn.sharp.bbs.event;

import org.springframework.context.ApplicationEvent;

/**
 * @className: LoginEvent
 * @description: 用户登录事件
 * @author: 王晓崧
 * @date: 2022/7/10
 **/
public class LoginEvent extends ApplicationEvent {
    private String key;

    private Long userID;

    public LoginEvent(Object source) {
        super(source);
    }

    public LoginEvent(Object source, String key) {
        super(source);
        this.key = key;
    }

    public LoginEvent(Object source, Long userID) {
        super(source);
        this.userID = userID;
    }

    public String getKey() {
        return key;
    }

    public Long getUserID() {
        return userID;
    }
}
